package com.hugo.eduservice.client;

import com.hugo.commonutiles.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(name = "service-vod", fallback =  VodFileDegradeFeignClient.class)
public interface VodClient {
    //定义调用的方法路径
    @DeleteMapping("/eduvod/video/deletedVideo/{id}")
    public R deletedVideo(@PathVariable("id") String id);

    @DeleteMapping("/eduvod/video/deletedMoreVideo")
    public R deletedMoreVideo(@RequestParam("viedoIdList") List<String> viedoIdList);
}
